import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import Editor from '@feidao/widgets/fd-w000013';
import p001 from './p001';
import p002 from './p002';
import p003 from './p003';
import p004 from './p004';
import p007 from './p007';
import p006 from './p006';
import p005 from './p005';
import p008 from './p008';
import p009 from './p009';
////////////////////////////////////////////////////////////////////////////////
// import atoms

////////////////////////////////////////////////////////////////////////////////

export default function a001(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const editor = fd.data.node.querySelector<Editor>('#editor');
	const flag = fd.data.params.flag;
	switch (flag) {
		case '1':
			editor.set_value(p001);
			break;
		case '2':
			editor.set_value(p002);
			break;
		case '3':
			editor.set_value(p003);
			break;
		case '4':
			editor.set_value(p004);
			break;
		case '5':
			editor.set_value(p005);
			break;
		case '6':
			editor.set_value(p006);
			break;
		case '7':
			editor.set_value(p007);
			break;
		case '8':
			editor.set_value(p008);
			break;
		case '9':
			editor.set_value(p009);
			break;
		default:
			break;
	}
}
